﻿using System;

namespace TallComponents.Web.Pdf.Annotations
{
    internal interface INamedDestinationResolver
    {
        /// <summary>
        /// Resolves the destination with the specified name.
        /// </summary>
        /// <param name="name">The name of the destination to resolve.</param>
        /// <param name="destination">The resolved destination.</param>
        /// <returns>
        /// <c>true</c> if the destination was successfully resolved, <c>false</c> otherwise.
        /// </returns>
        bool TryResolve(string name, out TallComponents.PDF.Navigation.Destination destination);
    }
}
